package cn.itsource.pay.mapper;

import cn.itsource.pay.domain.OrderAdopt;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OrderAdoptMapper extends Mapper<OrderAdopt> {



    @Select("select * from t_order_adopt where order_sn = #{orderSn}")
    OrderAdopt selectByOrderSn(String out_trade_no);

    @Select("select * from t_order_adopt where state = 0 and last_confirm_time <= #{time}")
    List<OrderAdopt> selectBeforeBanHour(String time);
}
